#include <stdio.h>
#include <stdlib.h>

int main(){
	int i;
	char *files[]={"data1","data2","data3"};
	int j;
	for(j=0;j<3;j++){
		FILE* fp=fopen(files[j],"w+");
		for(i=0;i<100;i++)
			fprintf(fp,"%d ",random()%9000);
		fclose(fp);
	}
}
